Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for media players in device controls #4917

Merged
merged 2 commits into from
Dec 21, 2024

Conversation

dshokouhi
Copy link
Member

@dshokouhi dshokouhi commented Dec 19, 2024

Summary

Adds support for media player entities in device controls.

Toggle control will play/pause, active state is only if playing

Slider control for volume if media player supports setting the volume

Behavior designed to match frontend as close as possible due to conversions for volume

Screenshots

image

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#1149

Any other notes

Ref: https://community.home-assistant.io/t/wth-why-cant-media-player-entities-be-added-to-android-device-controls/813242

The actions accept any value, we don't particularly need to round things but good to keep things clean i think. Tested with a few of my media players.

@jpelgrom
Copy link
Member

Seems to work well, just not completely sure about the presentation yet (added two more comments).

@dshokouhi dshokouhi merged commit 6e2867e into home-assistant:master Dec 21, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants